package com.ftg.learn.chapter04;

import org.junit.Assert;
import org.junit.Test;

public class testLeranMethodJunit {

    @Test
    public void testAdd(){
        int x = 13;
        int y = 14;
        int sum = LeranMethodJunit.add(x,y);
        //测试
        Assert.assertEquals(27,sum);
    }

    @Test
    public void testAdd3(){
        int x = 13;
        int y = 14;
        int z = 15;
        int sum = LeranMethodJunit.add(x,y,z);
        //测试失败
        Assert.assertEquals(41,sum);
    }
}
